package com.feign.serverLineFeign.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 工序物料
 *
 * @author Gmr
 * @since 2024-07-31
 */
@TableName("CT_PROCESS_MATERIALS")
@ApiModel(value = "ProcessMaterials对象", description = "工序物料")
@Data
@EqualsAndHashCode(callSuper = false)
public class ProcessMaterials extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 工序ID
     */
    @ApiModelProperty("工序ID")
    @TableField("PRODUCTION_PROCESSES_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long productionProcessesId;

    /**
     * 物料类型ID
     */
    @ApiModelProperty("物料类型ID")
    @TableField("MATERIAL_TYPE_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long materialTypeId;

    /**
     * 代号
     */
    @ApiModelProperty("代号")
    @TableField("CODE")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    @TableField("NAME")
    private String name;

    /**
     * 数量
     */
    @ApiModelProperty("数量")
    @TableField("MATERIAL_NUMBER")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long materialNumber;

    /**
     * 数量单位
     */
    @ApiModelProperty("数量单位")
    @TableField("QUANTITY_UNIT")
    private String quantityUnit;

    /**
     * 是否组件
     */
    @ApiModelProperty("是否组件")
    @TableField("IS_COMPONENT")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long isComponent;

    /**
     * 是否主零件
     */
    @ApiModelProperty("是否主零件")
    @TableField("IS_MAIN_PART")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long isMainPart;

    /**
     * 物料类型
     */
    @ApiModelProperty("物料类型")
    @TableField("MATERIAL_TYPE")
    private String materialType;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @TableField("REMARK")
    private String remark;
}
